package com.ruoyi.aimp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aimp.mapper.Aimp_BehaviorwarnMapper;
import com.ruoyi.aimp.domain.Aimp_Behaviorwarn;
import com.ruoyi.aimp.service.IAimp_BehaviorwarnService;

/**
 * 行为告警Service业务层处理
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
@Service
public class Aimp_BehaviorwarnServiceImpl implements IAimp_BehaviorwarnService 
{
    @Autowired
    private Aimp_BehaviorwarnMapper aimp_BehaviorwarnMapper;

    /**
     * 查询行为告警
     * 
     * @param behaviorwarnId 行为告警主键
     * @return 行为告警
     */
    @Override
    public Aimp_Behaviorwarn selectAimp_BehaviorwarnByBehaviorwarnId(Long behaviorwarnId)
    {
        return aimp_BehaviorwarnMapper.selectAimp_BehaviorwarnByBehaviorwarnId(behaviorwarnId);
    }

    /**
     * 查询行为告警列表
     * 
     * @param aimp_Behaviorwarn 行为告警
     * @return 行为告警
     */
    @Override
    public List<Aimp_Behaviorwarn> selectAimp_BehaviorwarnList(Aimp_Behaviorwarn aimp_Behaviorwarn)
    {
        return aimp_BehaviorwarnMapper.selectAimp_BehaviorwarnList(aimp_Behaviorwarn);
    }

    /**
     * 新增行为告警
     * 
     * @param aimp_Behaviorwarn 行为告警
     * @return 结果
     */
    @Override
    public int insertAimp_Behaviorwarn(Aimp_Behaviorwarn aimp_Behaviorwarn)
    {
        return aimp_BehaviorwarnMapper.insertAimp_Behaviorwarn(aimp_Behaviorwarn);
    }

    /**
     * 修改行为告警
     * 
     * @param aimp_Behaviorwarn 行为告警
     * @return 结果
     */
    @Override
    public int updateAimp_Behaviorwarn(Aimp_Behaviorwarn aimp_Behaviorwarn)
    {
        return aimp_BehaviorwarnMapper.updateAimp_Behaviorwarn(aimp_Behaviorwarn);
    }

    /**
     * 批量删除行为告警
     * 
     * @param behaviorwarnIds 需要删除的行为告警主键
     * @return 结果
     */
    @Override
    public int deleteAimp_BehaviorwarnByBehaviorwarnIds(Long[] behaviorwarnIds)
    {
        return aimp_BehaviorwarnMapper.deleteAimp_BehaviorwarnByBehaviorwarnIds(behaviorwarnIds);
    }

    /**
     * 删除行为告警信息
     * 
     * @param behaviorwarnId 行为告警主键
     * @return 结果
     */
    @Override
    public int deleteAimp_BehaviorwarnByBehaviorwarnId(Long behaviorwarnId)
    {
        return aimp_BehaviorwarnMapper.deleteAimp_BehaviorwarnByBehaviorwarnId(behaviorwarnId);
    }
}
